package com.oo.inherit_3.athlete;

/**
 * Player--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 11:16
 **/
public class Player extends Person {

    private String school;

    private String famous;

    public Player(String name, int age, String sex, String school, String famous) {
        super(name, age, sex);
        this.school = school;
        this.famous = famous;
    }

    public Player(String name, int age, String sex) {
        super(name, age, sex);
    }

    public Player() {
    }

    public void intro() {
        System.out.println("大家好！我是"+this.getName()
        +"\n今年"+this.getAge()+"\n我毕业于："+this.getSchool()
        +"\n代表作有："+this.getFamous());
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getFamous() {
        return famous;
    }

    public void setFamous(String famous) {
        this.famous = famous;
    }
}
